package com.gouaixin.bee.beeframework2.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.Html;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.gouaixin.bee.beeframework2.R;
import com.gouaixin.bee.beeframework2.model.DialogModel;

/**
 * Created by Administrator on 2015/3/10.
 */
//vip特权界面
public class D_vip_aibiActivity extends FragmentActivity {
    Context context=D_vip_aibiActivity.this;

    //顶部
    ImageView back;//返回
    TextView title;//标题

    TextView viptv09;//更精准搜索条件

    TextView kt01,kt02,kt03,kt04;//立即开通

    String order="";//订单名
    String price="";//订单价格



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.b14_viptequan);

        initView();

        setData();
        
        setListener();

    }

    private void setData() {
        viptv09.setText(Html.fromHtml("<font color=\"#a3a3a3\">" +"可以通过" + "</font><font color=\"#FF0541\">"+"年龄、身高、地区、星座、收入"+"</font><font color=\"#a3a3a3\">"+"等多个条件来找到你喜欢的MM、GG"+"</font>"));

    }

    private void setListener() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        kt01.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));
            }
        });

        kt02.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));

            }
        });

        kt03.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));


            }
        });

        kt04.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it=new Intent(context,D_aibi_hongniangActivity.class);
                DialogModel.toActivity(context, it, "爱币服务", getResources().getString(R.string.baoyue_aibi));

            }
        });


    }

    private void initView() {

        back= (ImageView) findViewById(R.id.back);
        title= (TextView) findViewById(R.id.title);

        viptv09= (TextView) findViewById(R.id.viptv09);

        kt01= (TextView) findViewById(R.id.kt01);
        kt02= (TextView) findViewById(R.id.kt02);
        kt03= (TextView) findViewById(R.id.kt03);
        kt04= (TextView) findViewById(R.id.kt04);

    }

    /**
     * 监听返回键
     */
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
//        AbToastUtil.showToast(context,"你点击了返回键");
    }
}
